import { createRouter, createWebHashHistory } from "vue-router"
//一级路由
import navigationbar from "@/views/navigationbar/index"
import one from "@/views/Pages/one"
import two from "@/views/Pages/two"
//二级路由
import PutOut from '@/views/Pages/PutOut/index'
import MakingFriends from '@/views/Pages/MakingFriends/index'
import HomePage from '@/views/Pages/HomePage/index'
import LostCenter from '@/views/Pages/LostCenter/index'
import MyMine from '@/views/Pages/MyMine/index'
import Mylogin from '@/views/Pages/Mylogin/index'
import Search from '@/views/Pages/Search/index'
import Catdetails from '@/views/Pages/Catdetails/index'
var router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: "",
            redirect: "/one"
        },
        {
            path: "/one",
            name: "one",
            component: one,

        },
        {
            path: "/two",
            name: "two",
            component: two,

        },
        {
            path: "/navigationbar",
            name: "navigationbar",
            component: navigationbar,
            children: [
                // {
                //     path: '',
                //     redirect: "/HomePage"
                // },

                {
                    path: "PutOut",
                    name: "PutOut",
                    component: PutOut,
                },
                {
                    path: "MakingFriends",
                    name: "MakingFriends",
                    component: MakingFriends,
                    
                },
                {
                    path: "Search",
                    name: "Search",
                    component: Search,
                },

                {
                    path: "HomePage",
                    name: "HomePage",
                    component: HomePage,
                },
                {
                    path: "LostCenter",
                    name: "LostCenter",
                    component: LostCenter,
                },
                {

                    path: "MyMine",
                    name: "MyMine",
                    component: MyMine,

                },
                {
                    path: "Catdetails",
                    name: "Catdetails",
                    component: Catdetails,
                },
                {
                    path: "Mylogin",
                    name: "Mylogin",
                    component: Mylogin,
                },

            ]
        }
    ]
})
export default router